CC = gcc
STRICTFLAGS = -ansi -pedantic -Wall -Werror
CFLAGS = -g $(STRICTFLAGS)
RM = /bin/rm -f

all: sleepit

%.o: %.c
	gcc $(CFLAGS) -c $< -o $@

sleepit: modes.o main.o uglies.o
	$(CC) -lpthread modes.o main.o uglies.o -o sleepit

modes.o: modes.c modes.h structs.h
main.o: main.c modes.h structs.h uglies.h
uglies.o: uglies.c uglies.h

clean:
	$(RM) *~ *.o sleepit conf/*~
